 |
 |
 |
 |
#249083 - 08/11/03 06:21 PM
Re: [6.3] Facelift for UBB Threads
[Re: eslmix]
|
Journeyman
Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
|
yes, that is the template I'm talking about.<br /><br />My board uses facelift, and I just noticed that at the bottom of the showflat page, there is some extraneous text that appears, outside any of the usual tables, and just before the footer. It reads:<br /><br />"Open = O Edit link ="<br /><br />This text is not there when I use the older showflat template, and appears (tto me)to be somehow associated with code added in the 7/11 showflat.tmpl, namely these two lines near the end:<br /><br />Open = $Open<br />Edit link = {$postrow[$i]['editlinkstart']}<br /><br />...which I presume have to do with the editing option Dal was adding.<br /><br />Any idea how these could lead to the extraneous text? If YOU are using the facelift, have you not noticed this text?<br /><br />Always possible, of course, that I have something ELSE wrong with my board, but thought I'd check about the obvious link between that text and these 2 lines of code.<br /><br />Thanks! Tony
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#249097 - 08/28/03 08:53 AM
Re: [6.3] Facelift for UBB Threads
[Re: Daine]
|
Junior Member
Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
|
When viewing the source this is what I see for post icons:<br /><br /><a href="https://www.theiconsortium.com/iBASE/showicons.php?Cat=" target="new">Post Icon</a><br /><br /><br /><br /><select name="Icon" class="formboxes"><br /><option value="blush.gif" >blush</option><br /><option value="chat.gif" >chat</option><br /><option value="cool.gif" >cool</option><br /><option value="crazy.gif" >crazy</option><br /><option value="exclamation.gif" >exclamation</option><br /><option value="disk.gif" >file</option><br /><option value="frown.gif" >frown</option><br /><option value="lightbulb.gif" >idea</option><br /><br /><option value="laugh.gif" >laugh</option><br /><option value="link.gif" >link</option><br /><option value="mad.gif" >mad</option><br /><option value="book.gif" selected="selected" checked="checked">note</option><br /><option value="poll.gif" >poll</option><br /><option value="question.gif" >question</option><br /><option value="ribbon.gif" >ribbon</option><br /><option value="shocked.gif" >shocked</option><br /><option value="smile.gif" >smile</option><br /><br /><option value="tongue.gif" >tongue</option><br /><option value="trophy.gif" >trophy</option><br /><option value="wink.gif" >wink</option><br /></select><br /><br /><br /><br />My custom icons aren't listed in there. When I edit a post that had a custom icon there is no way for me to keep that custom icon.<br /><br />These is the changes I made for Quick Reply:<br /><br />" $Icon = get_input(""Icon"",""post"");<br />// strip off the URL<br /> $Icon = basename($Icon);"<br /><br />Replacing: $Icon = get_input("Icon","post");<br /><br /><br />" $PStatus = get_input(""PStatus"",""post"");<br /> $dofav = get_input(""dofav"",""post"");<br /> $quickreply = get_input(""quickreply"",""post"");<br /> <br />// -----------------<br />// If it came from the quick reply form<br />// we need to grab the ParentUser number for the reply<br /> if (($quickreply) && (!$ParentUser)) {<br /> $query = ""<br /> SELECT B_PosterId<br /> FROM {$config['tbprefix']}Posts<br /> WHERE B_Number = $Parent<br /> ""; <br /> $sth = $dbh -> do_query($query);<br /> list($ParentUser) = $dbh -> fetch_array($sth); <br /> } "<br /><br />"Replacing:<br /> $PStatus = get_input(""PStatus"",""post"");<br /> $dofav = get_input(""dofav"",""post"");"<br /><br /><br /> if ( (preg_match("/^\s*$/",$Subject)) || ($Body == "") || ($Body == " ") || ($Body == " ") || ($postername == "") ) {<br /><br />"Replacing:<br /> if ( (preg_match(""/^\s*$/"",$Subject)) || ($Body == """") || ($postername == """") ) {"<br /><br /><br />This is the change for Instant subscription:<br /><br />"// Send an Email to the Subscribers if they are Subscribed to this board<br />if (($Approved == ""yes"") && ($config['subscriptions'] == 1))<br />{<br /> $query = ""<br /> SELECT U_Email,<br /> U_Language<br /> FROM {$config['tbprefix']}Users<br /> LEFT JOIN {$config['tbprefix']}Subscribe ON S_UID = U_Number<br /> WHERE S_UID = U_Number<br /> AND S_Board = '$Board_q'<br /> "";<br /><br /> $sth = $dbh -> do_query($query);<br /><br /> while ( list($Mailto,$Language) = $dbh -> fetch_array($sth) ) <br /> {<br /> // -------------------------------------------=<br /> // We need to make sure this user still exists<br /> if ($Mailto) {<br /><br /> // -----------------------------------------------------------------<br /> // Now if this user has a pre-selected language we use that language<br /> // for the message we send out<br /> if (!$Language) { $Language = $config['language']; }<br /> <br /> require ""{$config['path']}/languages/$Language/addpost.php"";<br /><br /> $EmailBody = $Body;<br /> if ($config['stripcodes']) { $EmailBody = preg_replace(""/<([^>])*>/"","""",$EmailBody); }<br /> $EmailBody = eregi_replace(""<br />"", ""\r\n"", $EmailBody);<br /><br /> $newline = ""\n"";<br /> if (stristr(PHP_OS,""win"")) { $newline = ""\r\n""; }<br /><br /> $to = $Mailto;<br /> $mailer = new mailer;<br /> $header = $mailer -> headers(); <br /> $subject = ""New Post To $Title from $postername"";<br /> $msg = ""$postername has posted a message to $Title: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody"";<br /><br /> mail(""$to"",""$subject"",$msg,$header);<br /><br /> // --------------------------------------------------<br /> // Now, we need to switch back to this users language<br /> $Language = $user['U_Language'];<br /> if (!$Language) { $Language = $config['language']; }<br /> require ""{$config['path']}/languages/$Language/addpost.php"";<br /> }<br /> }<br />}"<br /><br />"above:<br />// ---------------------------------------------<br />// Update the total post if the post is Approved"<br /><br /><br />Otherwise my addpost.php is stock and I don't see how these changes would affect whether or not custom icons are shown.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|